<?php

namespace CNEPAdmin\Controller;

use Think\Controller;

class TestController extends Controller {

//    function __construct() {
//        parent::__construct();
//        echo "In constructor <br />";
//        
//    }

//    function test() {
//        $str = "中国石油天然气股份有限公司广东揭阳销售分公司揭东新亨油站";
//        dump(substr($str, 0, 12 * 3));
//        dump(mb_substr($str, 0, 12*3));
//    }

    function inputShop() {
        $shop = D("Shop");
//        $goods = D("Goods");
//        $goodsArr = array("0#" => 5.48, '92#' => 6.03, '95#' => 6.53);

        $shopList = M("ShopTest")->select();

        foreach ($shopList as $value) {
            $shopID = $shop->addShop($value);
        }
    }
    
    public function test123213(){
    	
    }

}

?>